import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Test'
import Register from '@/components/Register'
import Index from '@/components/Index'
import StaffLogin from '@/components/StaffLogin'
import OrderCore from '@/components/OrderCore'
import BackgroundCenter from '@/components/BackgroundCenter'
import Staff from '@/components/Staff'
import Dept from '@/components/Dept'
import Order from '@/components/Order'
import User from '@/components/User'
import Account from '@/components/Account'
import Collection from '@/components/Collection'
import Evaluation from '@/components/Evaluation'
import Message from '@/components/Message'
import Iphone from '@/components/Iphone'
import Email from '@/components/Email'
import Password from '@/components/Password'
import Service from '@/components/Service'
import Balance from '@/components/Balance'
import Payment from '@/components/Payment'
import Person from '@/components/Person'
import OrderPool from '@/components/OrderPool'
import MyOrderC from '@/components/MyOrderC'
import Refund from '@/components/Refund'
import CustomPage from '@/components/CustomPage'
import Bank from '@/components/Bank'
import ApprovedMemo from '@/components/ApprovedMemo'
import PushLevel from '@/components/PushLevel'
import FinallyOrder from '@/components/FinallyOrder'
import CompanyAccountFunds from '@/components/CompanyAccountFunds'
import Passenger from '@/components/Passenger'
import AccountEcharts from '@/components/AccountEcharts'
import AccountEcharts1 from '@/components/AccountEcharts1'
import Vip from '@/components/Vip'
import VisitBack from '@/components/VisitBack'
import ComplaintBack from '@/components/ComplaintBack'
import CustomerServiceEvaluationBack from '@/components/CustomerServiceEvaluationBack'
import lpm from '@/components/lpm'
import T2 from '@/components/T2'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/lpm',
      name: 'lpm',
      component: lpm
    },
    {
      path: '/T2',
      name: 'T2',
      component: T2
    },
    {
      path: '/AccountEcharts',
      name: 'AccountEcharts',
      component: AccountEcharts
    },
    {
      path: '/AccountEcharts1',
      name: 'AccountEcharts1',
      component: AccountEcharts1
    },
    
    {
      path: '/CompanyAccountFunds',
      name: 'CompanyAccountFunds',
      component: CompanyAccountFunds
    },
    {
      path: '/FinallyOrder',
      name: 'FinallyOrder',
      component: FinallyOrder
    },
    {
      path: '/PushLevel',
      name: 'PushLevel',
      component: PushLevel
    },
    {
      path: '/ApprovedMemo',
      name: 'ApprovedMemo',
      component: ApprovedMemo
    },
    {
      path: '/Bank',
      name: 'Bank',
      component: Bank
    },
    {
      path: '/OrderCore',
      name: 'OrderCore',
      component: OrderCore
    },
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/account',
      name: 'account',
      component: Account
    },
    {
      path: '/StaffLogin',
      name: 'StaffLogin',
      component: StaffLogin
    },
    {
      path: '/BackgroundCenter',
      name: 'BackgroundCenter',
      component: BackgroundCenter,
      children: [{
        path: '/Staff',
        name: 'Staff',
        component: Staff
      },{
        path: '/MyOrderC',
        name: 'MyOrderC',
        component: MyOrderC
      },
      {
        path: '/OrderPool',
        name: 'OrderPool',
        component: OrderPool
      },
      {
        path: '/CustomPage',
        name: 'CustomPage',
        component: CustomPage
      },
      {
        path: '/Dept',
        name: 'Dept',
        component: Dept
      },{
        path: '/VisitBack',
        name: 'VisitBack',
        component: VisitBack
      },{
        path: '/ComplaintBack',
        name: 'ComplaintBack',
        component: ComplaintBack
      },{
        path: '/CustomerServiceEvaluationBack',
        name: 'CustomerServiceEvaluationBack',
        component: CustomerServiceEvaluationBack
      },
      {
        path: '/AccountEcharts1',
        name: 'AccountEcharts1',
        component: AccountEcharts1
      },
      {
        path: 'Account',
        name: 'Account',
        component: Account,
      },
      {
        path: '/Refund',
        name: 'Refund',
        component: Refund,
      },
      {
        path: 'FinallyOrder',
        name: 'FinallyOrder',
        component: FinallyOrder
      },
      {
        path: 'Bank',
        name: 'Bank',
        component: Bank
      },
      {
        path: 'CompanyAccountFunds',
        name: 'CompanyAccountFunds',
        component: CompanyAccountFunds
      },
      {
        path: 'ApprovedMemo',
        name: 'ApprovedMemo',
        component: ApprovedMemo
      },
      {
        path: 'PushLevel',
        name: 'PushLevel',
        component: PushLevel
      },
      {
        path: '/AccountEcharts',
        name: 'AccountEcharts',
        component: AccountEcharts
      }, ]
    },
    {
      path: '/Person',
      name: 'Person',
      component: Person
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/Refund',
      name: 'Refund',
      component: Refund,
    },
    
    {
      path: '/Index',
      name: 'Index',
      component: Index,
    },
    {
      path: '/User',
      name: 'User',
      component: User,
      children: [{
          path: '/',
          name: 'Message',
          component: Message
        },
        {
          path: 'Refund',
          name: 'Refund',
          component: Refund,
        },
        {
          path: 'ApprovedMemo',
          name: 'ApprovedMemo',
          component: ApprovedMemo
        },
        {
          path: 'FinallyOrder',
          name: 'FinallyOrder',
          component: FinallyOrder
        },
        {
          path: 'AccountEcharts1',
          name: 'AccountEcharts1',
          component: AccountEcharts1
        },
        {
          path: 'Bank',
          name: 'Bank',
          component: Bank
        },
        {
          path: 'PushLevel',
          name: 'PushLevel',
          component: PushLevel
        },
        {
          path: 'CompanyAccountFunds',
          name: 'CompanyAccountFunds',
          component: CompanyAccountFunds
        },
        {
          path: 'Account',
          name: 'Account',
          component: Account,
        },
      
        {
          path: 'Account',
          name: 'Account',
          component: Account,
        },
      
        {
          path: 'Order',
          name: 'Order',
          component: Order,
        },
        {
          path: 'Collection',
          name: 'Collection',
          component: Collection,
        },  {
          path: 'Vip',
          name: 'Vip',
          component: Vip,
        },
        {
          path: 'Evaluation',
          name: 'Evaluation',
          component: Evaluation,
        },
        {
          path: 'Iphone',
          name: 'Iphone',
          component: Iphone,
        },
        {
          path: 'Email',
          name: 'Email',
          component: Email,
        },
        {
          path: 'Password',
          name: 'Password',
          component: Password,
        },
        {
          path: 'Service',
          name: 'Service',
          component: Service,
        },
        {
          path: 'Balance',
          name: 'Balance',
          component: Balance,
        },
        {
          path: 'Payment',
          name: 'Payment',
          component: Payment,
        },
        {
          path: 'Passenger',
          name: 'Passenger',
          component: Passenger,
        },
        {
          path: 'AccountEcharts',
          name: 'AccountEcharts',
          component: AccountEcharts
        },
      ]
    },
  ]
})